<?php defined('SYSPATH') or die('No direct script access.');

/**
 * 页面处理类
 */
class St_Page
{
    /**
     * 计算offset
     * @param $page
     * @param $page_size
     * @return float|int
     */
    public static function offset($page, $page_size)
    {
        return ($page - 1) * $page_size;
    }
}